package com.school.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 订单与货物关联表
 * </p>
 *
 * @author Forever
 * @since 2025-07-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("od_order_product")
public class OrderProduct implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 订单编号
     */
    @TableId(value = "order_id", type = IdType.AUTO)
    private Long orderId;

    /**
     * SKU编码
     */
    @TableField("sku_code")
    private Long skuCode;

    /**
     * 出库量
     */
    @TableField("rolls")
    private Integer rolls;

    /**
     * 订单时间
     */
    @TableField("order_datetime")
    private LocalDateTime orderDatetime;

}
